package com.mysite.springcloud.demo.order.service;

import com.mysite.springcloud.demo.api.vo.OrderVo;
import com.mysite.springcloud.demo.order.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public List<OrderVo> getOrdersByUser(Long userId) {
        return orderMapper.getOrdersByUser(userId);
    }
}
